package builderExample;

public class ScheduleDirector {

	private ScheduleBuilder scheduleBuilder = null;

	public ScheduleDirector(ScheduleBuilder scheduleBuilder) {
		this.scheduleBuilder = scheduleBuilder;
	}

	public void constructSchedule() {
		scheduleBuilder.buildWarmUp();
		scheduleBuilder.buildMainExercise();
		scheduleBuilder.buildWarmDown();
	}

	public Schedule getSchedule() {
		return scheduleBuilder.getSchedule();
	}

}
